<?php

include "connect.php";
$campus_id=$_POST['campus_id'];
$c_name=$_POST['c_name'];
$c_address=$_POST['c_address'];
$c_city=$_POST['c_city'];
$c_phone=$_POST['c_phone'];
$c_mail=$_POST['c_mail'];

$sq=mysql_query("select * from campus where campus_id='$campus_id'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE campus SET campus_id='$campus_id',c_name='$c_name',c_address='$c_address',c_city='$c_city',c_phone='$c_phone',c_mail='$c_mail'
  where campus_id='$campus_id'");


header("Location:update_campus_success.php");
}
?>
